<div class="header">
    <back-Btn></back-Btn>
    租赁合同
</div>
<div class="container finance">
    <div class="list f_sk">
        <div class="list-item icon_more required" ng-click="chooseProject()">
            <div class="item-label">项目名称</div>
            <div class="flow-content">{{ param.projectName }}</div>
        </div>
        <div class="list-item icon_more" ng-click="chooseSupplier()">
            <div class="item-label">供应商</div>
            <div class="flow-content">
                {{ param.supplierNo }}
            </div>
        </div>
        <div class="list-item">
            <div class="item-label">合同编号</div>
            <div class="flow-content">
                <input type="text" ng-model="param.contractNo" />
            </div>
        </div>
        <div class="list-item required">
            <p class="item-label">合同名称</p>
            <p class="flow-content">
                <input type="text" ng-model="param.contractName" />
            </p>
        </div>
        <label class="list-item icon_clock">
            <div class="item-label">签约日期</div>
            <div class="flow-content">
                <input type="text" date-directive ng-model="param.signDate" class="c0" />
            </div>
        </label>
        <label class="list-item icon_clock">
            <div class="item-label">计划起租日期</div>
            <div class="flow-content">
                <input type="text" date-directive ng-model="param.startRentDate" class="c0" />
            </div>
        </label>
        <label class="list-item icon_clock">
            <div class="item-label">计划退租日期</div>
            <div class="flow-content">
                <input type="text" date-directive ng-model="param.endRentDate" class="c0" />
            </div>
        </label>
        <div class="list-item required">
            <div class="item-label">甲方</div>
            <div class="flow-content">
                <input type="text" ng-model="param.partA" />
            </div>
        </div>
        <div class="list-item required">
            <div class="item-label">乙方</div>
            <div class="flow-content">
                <input type="text" ng-model="param.partB" />
            </div>
        </div>
        <div class="list-item">
            <div class="item-label">第三方</div>
            <div class="flow-content">
                <input type="text" ng-model="param.partC" />
            </div>
        </div>
        <div class="list-item">
            <div class="item-label">乙方开户行</div>
            <div class="flow-content">
                <input type="text" ng-model="param.partBBank" />
            </div>
        </div>
        <div class="list-item">
            <div class="item-label">乙方银行账号</div>
            <div class="flow-content">
                <input type="text" ng-model="param.partBAccount" />
            </div>
        </div>

        <div class="list-item icon_more required">
            <div class="item-label">发票类型</div>
            <div class="flow-content" style="padding-right:0">
                <select ng-model="param.invoiceType" ng-options="item.value as item.key for item in invoiceTypeList">
                    <option value="">选择发票类型</option>
                </select>
            </div>
        </div>
        <div class="list-item icon_more required">
            <div class="item-label">税率</div>
            <div class="flow-content" style="padding-right:0">
                <select ng-model="param.taxRate" ng-options="item.value as item.key for item in rateList">
                    <option value="">选择税率</option>
                </select>
            </div>
        </div>
        <div class="list-item icon_more required">
            <div class="item-label">是否含税</div>
            <div class="flow-content" style="padding-right:0">
                <select ng-model="param.taxInclusive" ng-options="item.value as item.key for item in vatlist">
                </select>
            </div>
        </div>
        <div class="list-item required">
            <div class="item-label">合同金额</div>
            <div class="flow-content">
                <input type="text" ng-model="param.contractAmount" tel-directive />
            </div>
        </div>
        <div class="list-item list-item-textarea">
            <div class="item-label">主要条款</div>
            <div class="flow-content">
                <textarea cols="30" rows="10" ng-model="param.mainClause"></textarea>
            </div>
        </div>
        <div class="list-item list-item-textarea">
            <div class="item-label">备注</div>
            <div class="flow-content">
                <textarea cols="30" rows="10" ng-model="param.remark"></textarea>
            </div>
        </div>
        <!-- 自定义字段 -->
        <div user-defined field-map="param.fieldMap" validation="validation" uid="param.uid"
            processid="param.processInstanceId"></div>
        <div class="table-list">
            <div class="info-title">租赁明细 <span class="c-blue fr" ng-click="showPicker()">添加</span></div>
            <div class="table-item" ng-repeat="item in param.details">
                <div class="content" ng-class="{cur:$index==curindex}" ng-click="resetlist(0)"
                    ng-swipe-left="swipe($index,0)" ng-swipe-right="swipe(-1,0)">
                    <div class="list-item">
                        <div class="item-label">物品名称:</div>
                        <div class="flow-content">
                            {{item.name}}
                        </div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">物品型号:</div>
                        <div class="flow-content">
                            {{item.type}}
                        </div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">租赁数量:</div>
                        <div class="flow-content">
                            {{item.quantity}}
                        </div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">物品单位:</div>
                        <div class="flow-content">
                            {{item.unit}}
                        </div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">租赁单价(元):</div>
                        <div class="flow-content">
                            {{item.price|NBFmt}}
                        </div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">租赁时间:</div>
                        <div class="flow-content">
                            {{item.rentPeriod}}
                        </div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">租赁总价:</div>
                        <div class="flow-content">
                            {{item.totalPrice|NBFmt}}
                        </div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">备注:</div>
                        <div class="flow-content">
                            {{item.remark}}
                        </div>
                    </div>
                </div>
                <div class="delete_icon icon_del" ng-click="deletedItem($index)"></div>
            </div>
        </div>
        <!-- 附件 -->
        <div class="file-upload" file-upload file-data="param.attachment"></div>
        <!-- 审查日志 -->
        <div log-list taskid="process_id"></div>
    </div>
</div>
<div class="list tablestyle pickceritem" ng-show="showCerPicker">
    <div class="list-item">
        <div class="grid list-content required">
            <div class="col-5-12 tr c9">物品名称</div>
            <div class="col-7-12">
                <input type="text" ng-model="picker.name" />
            </div>
        </div>
        <div class="grid list-content">
            <div class="col-5-12 tr c9">物品型号</div>
            <div class="col-7-12">
                <input type="text" ng-model="picker.type" />
            </div>
        </div>
        <div class="grid list-content">
            <div class="col-5-12 tr c9">租赁数量</div>
            <div class="col-7-12">
                <input type="text" ng-model="picker.quantity" tel-directive />
            </div>
        </div>
        <div class="grid list-content">
            <div class="col-5-12 tr c9">物品单位</div>
            <div class="col-7-12">
                <input type="text" ng-model="picker.unit" />
            </div>
        </div>
        <div class="grid list-content">
            <div class="col-5-12 tr c9">计价单位</div>
            <div class="col-7-12">
                <select ng-model="picker.priceUnit">
                    <option value=""></option>
                    <option value="小时">小时</option>
                    <option value="天">天</option>
                    <option value="周">周</option>
                    <option value="月">月</option>
                    <option value="季度">季度</option>
                    <option value="年">年</option>
                    <option value="无">无</option>
                </select>
            </div>
        </div>
        <div class="grid list-content">
            <div class="col-5-12 tr c9">租赁单价(元)</div>
            <div class="col-7-12">
                <input type="text" ng-model="picker.price" tel-directive />
            </div>
        </div>
        <div class="grid list-content">
            <div class="col-5-12 tr c9">租赁时间</div>
            <div class="col-7-12">
                <input type="text" ng-model="picker.rentPeriod" tel-directive />
            </div>
        </div>
        <div class="grid list-content">
            <div class="col-5-12 tr c9">租赁总价(元)</div>
            <div class="col-7-12">
                <input type="text" ng-model="picker.totalPrice" tel-directive />
            </div>
        </div>
        <div class="grid list-content">
            <div class="col-5-12 tr c9">备注</div>
            <div class="col-7-12">
                <input type="text" ng-model="picker.remark" />
            </div>
        </div>
    </div>
    <div class="pickceritem-btn flex tc">
        <div class="cancel" ng-click="closePicker()">取消</div>
        <div class="confirm" ng-click="addItem()">确定</div>
    </div>
</div>

<!-- 删除流程 -->
<div delete-flow uid="param.uid" id="{{ param.processInstanceId }}" submit="submit" validate="validate"></div>